﻿@using RentHouse.DTO
@*@model IEnumerable<RentHouse.DTO.PermissionDTO>*@
@model IEnumerable<PermissionDTO>
@{
    ViewBag.Title = "Index";

}
<style type="text/css">
    .table{
        border :1px solid;
    }
</style>

    <table class="table table-bordered">
        <thead>
            <tr>
                <th>权限名称</th>
                <th>描述</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
            @foreach (PermissionDTO permissionDTO in Model)
            {
                <tr>
                    <td>@permissionDTO.Name</td>
                    <td>@permissionDTO.Description</td>
                    <td><a href="@Url.Action("Detail", "Permissions")?id=@permissionDTO.Id">详情</a></td>
                    @*<td><a href="/Permissions/Detail?id=@permissionDTO.Id">详情</a></td>*@

                </tr>
            }
        </tbody>
    </table>


